package cn.cheniy.swiftmark.api.feign;


import cn.cheniy.swiftmark.api.vo.EsPageVO;
import cn.cheniy.swiftmark.api.vo.search.EsOrderVO;
import cn.cheniy.swiftmark.common.dto.OrderSearchDTO;
import cn.cheniy.swiftmark.common.feign.FeignInsideAuthConfig;
import cn.cheniy.swiftmark.common.response.ServerResponseEntity;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PutMapping;
import org.springframework.web.bind.annotation.RequestBody;

/**
 * @author cheniy
 * @description 订单搜索
 *  
 */
@FeignClient(value = "swiftmark-search",contextId = "searchOrder")
public interface SearchOrderFeignClient {


    /**
     * 订单搜索
     * @param orderSearch 订单搜索参数
     * @return 订单列表
     */
    @PutMapping(value = FeignInsideAuthConfig.FEIGN_INSIDE_URL_PREFIX + "/insider/searchOrder/getOrderPage")
    ServerResponseEntity<EsPageVO<EsOrderVO>> getOrderPage(@RequestBody OrderSearchDTO orderSearch);

}
